package com.heima.cloud.clients.fallback;

import com.heima.cloud.clients.OrderFeignApi;
import com.heima.cloud.pojo.Order;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderFeignApiFallBack implements OrderFeignApi {
    @Override
    public List<Order> findOrderByUserId(String username) {
        List<Order> orders=new ArrayList<>();
        Order order=new Order();
        order.setUserName("服务暂停");
        orders.add(order);
        return orders;
    }
}
